package com.aier.user.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 关注实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "notice", catalog = "abc")
public class Notice implements java.io.Serializable {

    // 标识
    private Long nid;
    // 接收通知的人用户id
    private Long ruid;
    // 内容
    private String content;
    // 时间
    private Timestamp cdate;


    /** default constructor */
    public Notice() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "nid", unique = true, nullable = false)
    public Long getNid() {
        return nid;
    }

    public void setNid(Long nid) {
        this.nid = nid;
    }
    @Column(name = "ruid", nullable = false, length = Constant.num_20)
    public Long getRuid() {
        return ruid;
    }

    public void setRuid(Long ruid) {
        this.ruid = ruid;
    }
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

}